package com.woniuxy.sales.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @TableName 订单表
 */
@TableName(value ="orders")
@Data
public class Orders implements Serializable {
    //使用手动输入做为主键
    @TableId(type = IdType.INPUT)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long orderId;  //订单id

    private Integer userId;  //用户id

    @TableField(fill = FieldFill.INSERT)
    private Date orderDate;  //订单日期

    private Double totalPrice; //金额

    private Integer orderStatus;  //1是待支付 2是已支付 3是已取消

    private Integer addressId;//地址id

    private Integer deleted;

    private Integer shipmentStatus;  //1是正常发货 2是加急发货

    private static final long serialVersionUID = 1L;
}